﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
      ScriptSrc="~SiteCollection/Style Library/Scripts/jquery144minGoogleStyleLibrary.js"
      Location="ScriptLink"
      Sequence="10">
  </CustomAction>
  <!-- this doesnt work, as need jquery to be loaded in the head, first before everything else
  <CustomAction
 Location="ScriptLink"
 ScriptBlock="
var clientscript_head = document.getElementsByTagName('head')[0];
var clientscript_script = document.createElement('script');
clientscript_script.type = 'text/javascript';
clientscript_script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'; //todo: https
clientscript_script.onreadystatechange = function() {
  if (this.readyState == 'complete') { 
  }
};
clientscript_head.appendChild(clientscript_script);
//http://stackoverflow.com/questions/2342974/when-does-the-browser-execute-javascript-how-does-the-execution-cursor-move
//http://stackoverflow.com/questions/94141/javascripts-document-write-inline-script-execution-order
//document.write('&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js&quot;&gt;&lt;/' + 'script&gt;');
//SP.SOD.executeOrDelayUntilScriptLoaded(function () {
//}, 'sp.js');
//_spBodyOnLoadFunctionNames.push('funtionName');
//jquery144minGoogleStyleLibrary
" Sequence="10">
  </CustomAction>
  -->
</Elements>
